package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备使用记录
 * </p>
 *
 * @author gxy
 * @since 2022-07-28
 */
@Getter
@Setter
@TableName("ncg_recordset")
@ApiModel(value = "Recordset对象", description = "设备使用记录")
public class Recordset implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("设备编码")
    private String imei;

    @ApiModelProperty("开始时间")
    private LocalDateTime startdate;

    @ApiModelProperty("结束时间")
    private LocalDateTime enddate;

    @ApiModelProperty("使用患者")
    private Long uid;

    @ApiModelProperty("分配医生")
    private Long docid;

    @ApiModelProperty("状态 0：使用中  1：空闲中")
    private Integer status;

    @ApiModelProperty("1. 血糖 2. 血压 3. 动态血压 4. 动态心电")
    private Integer devicetype;

//    @ApiModelProperty("设备名称")
//    private String devicename;

    @ApiModelProperty("佩戴人姓名")
    @TableField(exist = false)
    private String uName;

    @ApiModelProperty("发放医生")
    @TableField(exist = false)
    private String docName;
//
//    @ApiModelProperty("设备所属产品id")
//    private Integer productid;

    @ApiModelProperty("产品名称")
    @TableField(exist = false)
    private String productName;

    @ApiModelProperty("设备名称")
    @TableField(exist = false)
    private String devicename;


}
